import { Payload } from "../../../structures/dto/Payload";
import { Client } from "../../Client";

/*

{
    "t": "THREAD_MEMBERS_UPDATE",
    "s": 59,
    "op": 0,
    "d": {
        "member_ids_preview": [
            "355721010705858562",
            "494518887165984790",
            "934142261967613982",
            "118483467766857735"
        ],
        "member_count": 4,
        "id": "1182930844101390396",
        "added_members": [
            {
                "user_id": "118483467766857735",
                "presence": {
                    "user": {
                        "username": "timosh",
                        "id": "118483467766857735",
                        "global_name": "Timosh",
                        "discriminator": "0",
                        "avatar_decoration_data": null,
                        "avatar": "643fbd518376a074858bcf41a1c36751"
                    },
                    "status": "offline",
                    "game": null,
                    "client_status": {},
                    "broadcast": null,
                    "activities": []
                },
                "muted": false,
                "mute_config": null,
                "member": {
                    "user": {
                        "username": "timosh",
                        "public_flags": 0,
                        "id": "118483467766857735",
                        "global_name": "Timosh",
                        "display_name": "Timosh",
                        "discriminator": "0",
                        "bot": false,
                        "avatar_decoration_data": null,
                        "avatar": "643fbd518376a074858bcf41a1c36751"
                    },
                    "roles": [
                        "895063153707192320",
                        "895065457487384608",
                        "936902705027354664",
                        "895065465959882793",
                        "935955358772523018",
                        "778343916108906507",
                        "828009346251227148",
                        "778343819590107218",
                        "895065420720136213"
                    ],
                    "premium_since": null,
                    "pending": false,
                    "nick": null,
                    "mute": false,
                    "joined_at": "2021-03-10T19:02:39.578000+00:00",
                    "flags": 0,
                    "deaf": false,
                    "communication_disabled_until": null,
                    "avatar": null
                },
                "join_timestamp": "2023-12-09T08:47:26.075569+00:00",
                "id": "1182930844101390396",
                "flags": 1
            }
        ],
        "guild_id": "745037351163527189"
    }
}

*/

export function THREAD_MEMBERS_UPDATE(client: Client, payload: Payload) {

    console.log("THREAD_MEMBERS_UPDATE " + JSON.stringify(payload))

    return null;
}